const chong = {
	tip: function(title, type) {
		if (type === 0) {
			uni.showLoading({
				title: title,
				mask: true
			})
		} else if (type === 1) {
			uni.showToast({
				icon: 'none',
				title: title,
			})
		} else {
			uni.showToast({
				icon: 'none',
				title: title,
				mask: true
			})
		}
	},
	time: function() {
		return new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate() + ' ' + new Date()
			.getHours() + ':' + new Date().getMinutes();
	}
}
export default chong
